broadway: Strip newlines from g_warning and g_error
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Feb 2016 17:19:31 +0000 (12:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 Feb 2016 17:23:12 +0000 (12:23 -0500)
g_logv adds one for us already.

gdk/broadway/broadway-output.c
gdk/broadway/broadwayd.c
gdk/broadway/gdkbroadway-server.c
gdk/broadway/gdkselection-broadway.c

index 631c5428904c5ffda90f0a2d4166db9d9cf9c2c3..4434447e0f99aae871c64dbc94dc3da41610c029 100644 (file)
@@ -318,7 +318,7 @@ broadway_output_put_buffer (BroadwayOutput *output,
   if (!g_output_stream_write_all (out, encoded->str, encoded->len,
                                   NULL, NULL, NULL) ||
       !g_output_stream_close (out, NULL, NULL))
-    g_warning ("compression failed\n");
+    g_warning ("compression failed");
 
 
   len = g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (out_mem));
index 9cbde83ae67f3f08a61e1522b3351bb952476b58..84a9c3f3c128c0b9e36096cc33512d12a6184873 100644 (file)
@@ -302,7 +302,7 @@ client_handle_request (BroadwayClient *client,
       broadway_server_set_show_keyboard (server, request->set_show_keyboard.show_keyboard);
       break;
     default:
-      g_warning ("Unknown request of type %d\n", request->base.type);
+      g_warning ("Unknown request of type %d", request->base.type);
     }
 
 
index deb1692a504606b8cedaf3d642a207bd156c1e3f..2aa98abfab61b1d7970fe3bc76c6fedf1c3553aa 100644 (file)
@@ -320,7 +320,7 @@ process_input_messages (GdkBroadwayServer *server)
       if (reply->base.type == BROADWAY_REPLY_EVENT)
        _gdk_broadway_events_got_input (&reply->event.msg);
       else
-       g_warning ("Unhandled reply type %d\n", reply->base.type);
+       g_warning ("Unhandled reply type %d", reply->base.type);
       g_free (reply);
     }
 }
index 72422ba844bee5b214db86cfcca19b6aad3d2036..b62e11ef16b203f1cb9c0bcacc2439a09d702f59 100644 (file)
@@ -136,7 +136,7 @@ _gdk_broadway_display_convert_selection (GdkDisplay *display,
                                         GdkAtom    target,
                                         guint32    time)
 {
-  g_warning ("convert_selection not implemented\n");
+  g_warning ("convert_selection not implemented");
 }
 
 gint
@@ -153,7 +153,7 @@ _gdk_broadway_display_get_selection_property (GdkDisplay *display,
   if (data)
     *data = NULL;
 
-  g_warning ("get_selection_property not implemented\n");
+  g_warning ("get_selection_property not implemented");
 
   return 0;
 }
@@ -168,7 +168,7 @@ _gdk_broadway_display_send_selection_notify (GdkDisplay      *display,
 {
   g_return_if_fail (GDK_IS_DISPLAY (display));
 
-  g_warning ("send_selection_notify not implemented\n");
+  g_warning ("send_selection_notify not implemented");
 }